import React, {Component} from 'react';
import UserGroupTreeRefer from "src/uap/refer/riart/userGroupTreeRef";

import {
    high
} from 'nc-lightapp-front';

import getLanguage from '../../language';

const language = {};

const {
    Refer
} = high;

export default class UserGroupRefer extends Component {
    constructor(props) {
        super(props);
    }

    componentWillMount() {
        /*this.props.MultiInit.getMultiLang({
            moduleId: 'p6007',
            domainName: 'hrhi',
            callback: (json, status, inlt) => {
                Object.assign(language, json);
                this.forceUpdate();
            }
        });*/
    }

    render() {
        const {props} = this;

        return (
            <UserGroupTreeRefer
                isMultiSelectedEnabled={false}
                onChange={props.onChange}
                value={props.value}
                isShowUnit={true}
                queryCondition={{
                    isAuthFilter: false
                }}
            />
        );
    }
}